﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="Grupos.aspx.cs" Inherits=" RzCorportativo.Views.Ferramentas.Grupos" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="LeftContent" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="server">
    <div class="controls">
        <div class="row-fluid">
            <div class="span5">
                <div class="control-group">
                    <asp:TextBox runat="server" ID="Paciente" placeholder="Grupo"/>
                </div>
            </div>
        </div>
        <div class="row-fluid">
            <div class="span5">
                <div class="control-group">
                    <input type="button" name="novo" value="novo" class="btn btn-inverse" onclick="window.location='<%= EFramework.Web.UrlBase.UrlPadrao%>Views/Ferramentas/Grupo.aspx'" />
                    <asp:Button Text="buscar" ID="Button1" runat="server" CssClass="btn" />
                </div>
            </div>
        </div>
    </div>
    <div style="background-color: #fafafa; padding: 8px">
        <div id="navbarExample" class="navbar navbar-static" style="margin-bottom: 0px">
            <div class="navbar-inner">
                <div class="container" style="width: auto;">
                    <a class="brand" href="#">Grupos</a>
                    <ul class="nav">
                        <li class=""><a href="#mdo"></a></li>
                    </ul>
                </div>
            </div>
        </div>
        <div data-spy="scroll" data-target="" data-offset="0" class="scrollspy-example">
            <div style="overflow: auto; height: 500px; background-color: White">
                <div style="min-width: 800px; margin-top: 30px" class="grid">
                    <asp:GridView runat="server" AutoGenerateColumns="false" ID="ListaGrupo" AlternatingRowStyle-CssClass="gridrow_alternate"
                        RowStyle-CssClass="gridrow" CssClass="table-hover" PageSize="5" AllowPaging="true"
                        ShowHeader="false">
                        <%--OnPageIndexChanging="ListaConsulta_PageIndexChanging"--%>
                        <EmptyDataTemplate>
                            <strong>Não foram encontrados consultas para os filtros selecionados</strong>
                        </EmptyDataTemplate>
                        <Columns>
                            <asp:TemplateField HeaderText="Paciente">
                                <ItemTemplate>
                                        <%# this.GetItem(Container.DataItem).Descricao%>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Medico">
                                <ItemTemplate>
                                    <%# this.GetItem(Container.DataItem).Ativo ? "Ativo" : "Inativo"%>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Status" >
                                <ItemTemplate>
                                
                                    <a class="btn" href="<%# this.ResolveUrl("~/Views/Ferramentas/Grupo.aspx?grupoId=" + this.GetItem(Container.DataItem).GrupoId.ToString())%>"><i class="icon-edit"></i> editar</a>
                                </ItemTemplate>
                            </asp:TemplateField>
                        </Columns>
                    </asp:GridView>
                    <br />
                    <br />
                </div>
            </div>
        </div>
    </div>
</asp:Content>
